package cn.neusoft.dao;

import cn.neusoft.query.BaseQuery;

import java.sql.SQLException;
import java.util.List;

/**
 * 针对分页的接口(每个需要分页的模块都可以使用)
 * @param <T>
 */
public interface IPageDao<T>{

    public int getCount(BaseQuery baseQuery) throws SQLException;

    public List<T> getByPage(BaseQuery baseQuery) throws SQLException;

}
